<?php
$server="localhost";
$dbName="mydb";
$user="root";
$password="";

function connect_db($server="localhost",$user="root",$password=""){
	$connection=mysql_connect($server,$user,$password);
}

function runQuery($query,$db="mydb"){
	mysql_select_db($db);
	$result=mysql_query($query);
	if (!$result){
		die("erreur sur la requete Mysql: ".mysql_error());
	}
	return $result;
}